package com.woniuxy.commons.service;

import com.woniuxy.commons.entity.Inandoutlog;
import com.woniuxy.commons.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author author
 * @create 2021-11-17 14:26
 */
@FeignClient(name = "finance")
public interface FinanceService {


    @GetMapping("/finance/getallinandout")
    public ResponseResult getall(Inandoutlog inandoutlog, int pageIndex, int pageSize);



    @PostMapping("/finance/addInandoutlogs")
    public ResponseResult addInandoutlogs(@RequestBody Inandoutlog inandoutlog);



    @PutMapping("/finance/updateInandoutlogs")
    public ResponseResult updateInandoutlogs(@RequestBody Inandoutlog inandoutlog);




    @DeleteMapping("/finance/delInandoutlogs/{id}")
    public ResponseResult delInandoutlogs(@PathVariable("id") int id);




}
